package com.dailywork.basepro.thread.executors;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * @author think
 * @version 1.0.0
 * @since 2020/4/25
 */
@Slf4j
public class MyTask implements Runnable {

    @Setter
    @Getter
    private int taskId;

    @Setter
    @Getter
    private String taskName;

    public MyTask(int taskId, String taskName) {
        super();
        this.taskId = taskId;
        this.taskName = taskName;
    }

    @Override
    public void run() {
        System.out.println("run taskId = " + this.taskId);
    }

    @Override
    public String toString() {
        return Integer.toString(this.taskId);
    }
}
